/*#文件名称:index.js #米拓企业建站系统 #Copyright (C) 长沙米拓信息技术有限公司 (http://www.metinfo.cn). All rights reserved.*/
METUI_FUN['$uicss'] = {
  name: '$uicss',
  appear: function() {
      if (METUI['$uicss'].length) {
          var repeat = false;
          function animation() {
              if (repeat == false) {
                  var title = METUI['$uicss'].find('.title'),
                      subtitle = METUI['$uicss'].find('.subtitle'),
                      desc = METUI['$uicss'].find('.innerTitle h4'),
                      a = TweenMax.to(title, 0.6, {
                          autoAlpha: 1,
                          y: 0,
                          ease: Power3.ease,
                      }),
                      b = TweenMax.to(subtitle, 0.6, {
                          autoAlpha: 1,
                          y: 0,
                          ease: Power3.ease,
                      }),
                      c = TweenMax.to(desc, 0.6, {
                          autoAlpha: 1,
                          y: 0,
                          ease: Power3.ease,
                      });
                  var headAnimate = new TimelineMax();
                  headAnimate.add(a).add(c);
              }
          }
          var controller = new ScrollMagic.Controller();
          var scene = new ScrollMagic.Scene({
              triggerElement: '.$uicss',
              offset: -300
          }).addTo(controller);
          scene.on("enter", function(event) {
              animation();
              repeat = true;
          });
          $(window).resize(function() {
              repeat = false;
              animation();
          })
      }

  },
    init: function() {
      var a=METUI['$uicss'].find(".video-content span");
      a.click(function(){
          $(this).fadeOut();
          METUI['$uicss'].find('video').trigger('play').attr('controls','controls'); 
      }); 
  }
};
var x = new metui(METUI_FUN['$uicss']);